async function submit() {
    let total = getQuery("total");

    var info = await ajaxPost("/order/add",{
        total:total,
        person:$("person").value,
        address:$("address").value,
        phone:$("phone").value
    });

    console.log(info);

    if(info == "ok"){
        location.href = "/html/custom/success.html"
    }else {
        alert("提交订单失败，请重新提交")
    }
}